﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FaultBackService.Models;

namespace FaultBackService.DAL
{
    class TrendModel
    {
        /// <summary>
        /// 获取所有的可用的趋势分析模式
        /// </summary>
        /// <returns></returns>

        internal IList<Models.TrendModel> GetAllEnabled()
        {
            using (TurbineFaultContext context=new TurbineFaultContext())
            {
                return context.TrendModel
                    .Where(m=>m.Enable==true)
                    .ToList();
            }
        }
    }
}
